<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>全局邮箱设定</title>
</head>
<%
String  savemail  = "";
     String  path  =  getServletContext().getRealPath(".");
     if(path.indexOf("function") >0)
     {
     savemail = "savemail.jsp";
     }
     else
     {
          savemail = "function/savemail.jsp";
     }
     
 %>
<body>
	设置全局邮箱:

	<br>
	<form action="<%=savemail %>" id="xx">
		<table align="center">
			<tbody valign="middle">
				<tr>
					<td>邮箱地址：</td>
					<td><input type="text" name="mailbox" /></td>
				</tr>
				<tr>
					<td>邮箱用户名：</td>
					<td><input type="text" name="user" /></td>
				</tr>
				<tr>
					<td>邮箱smtp服务器地址：</td>
					<td><input type="text" name="smtp" /></td>
				</tr>
				<tr>
					<td>邮箱密码：</td>
					<td><input type="text" name="password" /></td>
				</tr>
				<tr>
					<td><input type="submit" value="提交" /></td>
					<td><input type="reset" value="重置" /></td>
				</tr>
		</table>
	</form>

</body>
</html>